package com.hubiao.basics.string;

import lombok.extern.slf4j.Slf4j;

/**
 * Description  详解StringBuffer 与 StringBuilder
 *
 * @author hubiao
 * @since 2021-01-16 20:11
 */
@Slf4j
public class StringBufferToStringBuilder {
    /***
     *   相同点：
     *          1.StringBuffer 与 StringBuilder都是可变的字符串
     *          2.他们都继承了AbstractStringBuilder类 与 CharSequence接口
     *               public final class StringBuffer  extends AbstractStringBuilder implements java.io.Serializable, CharSequence{}
     *               public final class StringBuilder extends AbstractStringBuilder implements java.io.Serializable, CharSequence{
     *
     */
    public void test01() {
        StringBuffer stringBuffer = new StringBuffer();
        StringBuilder stringBuilder = new StringBuilder();

    }
}
